<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admdownsupp.php,v $ 
 * $Date: 2005/08/29 14:51:59 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
$query="SELECT id FROM rportal_download,hierarchie WHERE rportal_download.id='$fid' AND rportal_download.droit=hierarchie.id_groupe AND hierarchie.id_groupe_dessus='$session[id_groupe]'";
$result=rportalrequete($query) or rportalerreur("ERREUR : $query","?op=");
if(rportalnbresult($result)==1){
        $query="DELETE FROM rportal_download WHERE id='$fid'";
        @rportalrequete($query) or rportalerreur("ERREUR : $query","?op=");
}
header("Location: ?op=admdownliste");
exit;
?>